import { request ,get} from '@/utils/axios'; // 引入封装后的 axios 方法

/**
 * @description - 封装考试类型的接口方法
 */
export class QuestionService {
  /**
   * @description
   * @param {object} params -
   * @return {Promise<any>} result
   */



  /**
   * @description 获取考试信息
   * @param {object} params - 请求参数
   * @return {Promise<any>} result
   */
  static async getQuestion(params?: Record<string, any>): Promise<any> {
    return request('/api/question/question-service/question-list', params, 'GET', true); // 需要认证
  }



  static async addQuestion(params?: Record<string, any>): Promise<any> {
    return request('/api/question/question-service/add-question', params, 'post', true); // 需要认证
  }

    static async updateQuestion(params?: Record<string, any>): Promise<any> {
    return request('/api/question/question-service', params, 'PUT', true); // 需要认证
  }


  static async getQuestionType(params?: Record<string, any>): Promise<any> {
    return request('/api/question/question-service/qu-type', params, 'post', true);
  }



}
